package com.ncloud.system.entity;

import java.util.Date;

import javax.validation.constraints.NotNull;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;

public class UserRole {
	@JSONField(serializeUsing = ToStringSerializer.class)
	@NotNull
	private Long userId;

	@JSONField(serializeUsing = ToStringSerializer.class)
	@NotNull
	private Long roleId;

	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@NotNull
	private Date effDate;

	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@NotNull
	private Date expDate;

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getRoleId() {
		return roleId;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

	public Date getEffDate() {
		return effDate;
	}

	public void setEffDate(Date effDate) {
		this.effDate = effDate;
	}

	public Date getExpDate() {
		return expDate;
	}

	public void setExpDate(Date expDate) {
		this.expDate = expDate;
	}

}
